<template>
  <div>
    <div class="block">
      <span class="demonstration">默认 click 触发子菜单</span>
      <el-cascader
        v-model="value"
        :options="options"
        :props="{'label': 'name','value':'name','children':'sub' }"
        @change="handleChange"></el-cascader>
    </div>

    <div class="block">
      <span class="demonstration">单选选择任意一级选项</span>
      <el-cascader
        v-model="value"
        :options="options"
        :props="{'label': 'name','value':'name','children':'sub',checkStrictly: true }"
        clearable
        @change="handleChange"></el-cascader>
    </div>

    <baidu-map class="map" :center="{lng: 116.404, lat: 39.915}" :zoom="11">
<!--      <bm-driving start="天安门" end="百度大厦" @searchcomplete="handleSearchComplete" :panel="false" :autoViewport="true"></bm-driving>-->
      <bml-lushu
        @stop="reset"
        :path="path"
        :icon="icon"
        :play="play"
        :rotation="true">
      </bml-lushu>
    </baidu-map>
  </div>
</template>

<script>
  import {BmlLushu} from 'vue-baidu-map'

  import { getCityData } from "@/api/city";

    export default {
      components: {
        BmlLushu
      },

      name: "demoIndex",
      data() {
        return {
          value:'',
          options :[],
          play: false,
          path: [{"lng":116.403944,"lat":39.914024,"of":"inner"},{"lng":116.402106,"lat":39.913978,"of":"inner"},{"lng":116.402036,"lat":39.913978,"of":"inner"},{"lng":116.401916,"lat":39.913977,"of":"inner"},{"lng":116.401227,"lat":39.913944,"of":"inner"},{"lng":116.401008,"lat":39.913933,"of":"inner"},{"lng":116.400598,"lat":39.913921,"of":"inner"},{"lng":116.3999,"lat":39.913897,"of":"inner"},{"lng":116.399471,"lat":39.913874,"of":"inner"},{"lng":116.399291,"lat":39.913873,"of":"inner"},{"lng":116.398693,"lat":39.913849,"of":"inner"},{"lng":116.398244,"lat":39.913805,"of":"inner"},{"lng":116.397665,"lat":39.913781,"of":"inner"},{"lng":116.39623,"lat":39.913728,"of":"inner"},{"lng":116.39612,"lat":39.913718,"of":"inner"},{"lng":116.395741,"lat":39.913704,"of":"inner"},{"lng":116.395582,"lat":39.913692,"of":"inner"},{"lng":116.395113,"lat":39.913678,"of":"inner"},{"lng":116.395024,"lat":39.913677,"of":"inner"},{"lng":116.392802,"lat":39.913592,"of":"inner"},{"lng":116.390582,"lat":39.913494,"of":"inner"},{"lng":116.389328,"lat":39.913456,"of":"inner"},{"lng":116.389239,"lat":39.913455,"of":"inner"},{"lng":116.38891,"lat":39.91346,"of":"inner"},{"lng":116.388731,"lat":39.913457,"of":"inner"},{"lng":116.388333,"lat":39.913452,"of":"inner"},{"lng":116.388263,"lat":39.913441,"of":"inner"},{"lng":116.388084,"lat":39.913448,"of":"inner"},{"lng":116.387239,"lat":39.913435,"of":"inner"},{"lng":116.386383,"lat":39.913421,"of":"inner"},{"lng":116.385896,"lat":39.913414,"of":"inner"},{"lng":116.385846,"lat":39.913413,"of":"inner"},{"lng":116.385379,"lat":39.913415,"of":"inner"},{"lng":116.384325,"lat":39.913398,"of":"inner"},{"lng":116.384166,"lat":39.913395,"of":"inner"},{"lng":116.383569,"lat":39.913385,"of":"inner"},{"lng":116.38347,"lat":39.913383,"of":"inner"},{"lng":116.383102,"lat":39.913377,"of":"inner"},{"lng":116.382327,"lat":39.913363,"of":"inner"},{"lng":116.382327,"lat":39.913363,"of":"inner"},{"lng":116.382297,"lat":39.913363,"of":"inner"},{"lng":116.382267,"lat":39.913362,"of":"inner"},{"lng":116.381651,"lat":39.913361,"of":"inner"},{"lng":116.381492,"lat":39.913359,"of":"inner"},{"lng":116.381462,"lat":39.913358,"of":"inner"},{"lng":116.381213,"lat":39.913354,"of":"inner"},{"lng":116.381184,"lat":39.913353,"of":"inner"},{"lng":116.381054,"lat":39.913351,"of":"inner"},{"lng":116.380876,"lat":39.913348,"of":"inner"},{"lng":116.380806,"lat":39.913346,"of":"inner"},{"lng":116.380746,"lat":39.913335,"of":"inner"},{"lng":116.380667,"lat":39.913334,"of":"inner"},{"lng":116.380438,"lat":39.91332,"of":"inner"},{"lng":116.380438,"lat":39.91332,"of":"inner"},{"lng":116.380339,"lat":39.913318,"of":"inner"},{"lng":116.38014,"lat":39.913314,"of":"inner"},{"lng":116.380051,"lat":39.913323,"of":"inner"},{"lng":116.379494,"lat":39.913313,"of":"inner"},{"lng":116.378858,"lat":39.913301,"of":"inner"},{"lng":116.378858,"lat":39.913301,"of":"inner"},{"lng":116.378103,"lat":39.913287,"of":"inner"},{"lng":116.377795,"lat":39.913292,"of":"inner"},{"lng":116.377348,"lat":39.913273,"of":"inner"},{"lng":116.376722,"lat":39.913272,"of":"inner"},{"lng":116.376513,"lat":39.913258,"of":"inner"},{"lng":116.375579,"lat":39.913251,"of":"inner"},{"lng":116.374237,"lat":39.913226,"of":"inner"},{"lng":116.37381,"lat":39.913218,"of":"inner"},{"lng":116.37375,"lat":39.913217,"of":"inner"},{"lng":116.372826,"lat":39.913211,"of":"inner"},{"lng":116.372826,"lat":39.913211,"of":"inner"},{"lng":116.372488,"lat":39.913204,"of":"inner"},{"lng":116.371176,"lat":39.913181,"of":"inner"},{"lng":116.370222,"lat":39.913164,"of":"inner"},{"lng":116.369874,"lat":39.913158,"of":"inner"},{"lng":116.369745,"lat":39.913156,"of":"inner"},{"lng":116.369605,"lat":39.913154,"of":"inner"},{"lng":116.369327,"lat":39.913149,"of":"inner"},{"lng":116.368731,"lat":39.913139,"of":"inner"},{"lng":116.368452,"lat":39.913134,"of":"inner"},{"lng":116.366593,"lat":39.913104,"of":"inner"},{"lng":116.366473,"lat":39.913102,"of":"inner"},{"lng":116.366274,"lat":39.913109,"of":"inner"},{"lng":116.365827,"lat":39.913092,"of":"inner"},{"lng":116.365469,"lat":39.913096,"of":"inner"},{"lng":116.365329,"lat":39.913094,"of":"inner"},{"lng":116.36514,"lat":39.913091,"of":"inner"},{"lng":116.364991,"lat":39.913089,"of":"inner"},{"lng":116.364603,"lat":39.913083,"of":"inner"},{"lng":116.364125,"lat":39.913076,"of":"inner"},{"lng":116.364125,"lat":39.913076,"of":"inner"},{"lng":116.363936,"lat":39.913183,"of":"inner"},{"lng":116.363857,"lat":39.913252,"of":"inner"},{"lng":116.363827,"lat":39.913282,"of":"inner"},{"lng":116.363807,"lat":39.913311,"of":"inner"},{"lng":116.363797,"lat":39.913361,"of":"inner"},{"lng":116.363777,"lat":39.913441,"of":"inner"},{"lng":116.363777,"lat":39.913491,"of":"inner"},{"lng":116.363747,"lat":39.91387,"of":"inner"},{"lng":116.363726,"lat":39.91416,"of":"inner"},{"lng":116.363706,"lat":39.91451,"of":"inner"},{"lng":116.363607,"lat":39.914758,"of":"inner"},{"lng":116.363576,"lat":39.915027,"of":"inner"},{"lng":116.363397,"lat":39.915685,"of":"inner"},{"lng":116.363337,"lat":39.915954,"of":"inner"},{"lng":116.363337,"lat":39.915954,"of":"inner"},{"lng":116.363287,"lat":39.916053,"of":"inner"},{"lng":116.363227,"lat":39.916182,"of":"inner"},{"lng":116.363227,"lat":39.916182,"of":"inner"},{"lng":116.363277,"lat":39.916453,"of":"inner"},{"lng":116.363306,"lat":39.916603,"of":"inner"},{"lng":116.363346,"lat":39.916884,"of":"inner"},{"lng":116.363386,"lat":39.917234,"of":"inner"},{"lng":116.363445,"lat":39.917815,"of":"inner"},{"lng":116.363445,"lat":39.917915,"of":"inner"},{"lng":116.363374,"lat":39.919493,"of":"inner"},{"lng":116.363333,"lat":39.920393,"of":"inner"},{"lng":116.363293,"lat":39.921782,"of":"inner"},{"lng":116.363283,"lat":39.921982,"of":"inner"},{"lng":116.363272,"lat":39.922131,"of":"inner"},{"lng":116.363262,"lat":39.922441,"of":"inner"},{"lng":116.363192,"lat":39.92405,"of":"inner"},{"lng":116.363182,"lat":39.92419,"of":"inner"},{"lng":116.363171,"lat":39.924529,"of":"inner"},{"lng":116.363111,"lat":39.925818,"of":"inner"},{"lng":116.363041,"lat":39.926767,"of":"inner"},{"lng":116.363021,"lat":39.927287,"of":"inner"},{"lng":116.363001,"lat":39.927947,"of":"inner"},{"lng":116.36285,"lat":39.931164,"of":"inner"},{"lng":116.36284,"lat":39.931374,"of":"inner"},{"lng":116.36283,"lat":39.931554,"of":"inner"},{"lng":116.36282,"lat":39.931664,"of":"inner"},{"lng":116.3628,"lat":39.931983,"of":"inner"},{"lng":116.3628,"lat":39.932263,"of":"inner"},{"lng":116.36276,"lat":39.933313,"of":"inner"},{"lng":116.362661,"lat":39.935261,"of":"inner"},{"lng":116.362661,"lat":39.935261,"of":"inner"},{"lng":116.362541,"lat":39.93762,"of":"inner"},{"lng":116.362512,"lat":39.938209,"of":"inner"},{"lng":116.362492,"lat":39.938679,"of":"inner"},{"lng":116.362492,"lat":39.938719,"of":"inner"},{"lng":116.362462,"lat":39.939809,"of":"inner"},{"lng":116.362432,"lat":39.940838,"of":"inner"},{"lng":116.362403,"lat":39.941388,"of":"inner"},{"lng":116.362383,"lat":39.941798,"of":"inner"},{"lng":116.362363,"lat":39.942108,"of":"inner"},{"lng":116.362353,"lat":39.942167,"of":"inner"},{"lng":116.362343,"lat":39.942337,"of":"inner"},{"lng":116.362333,"lat":39.942467,"of":"inner"},{"lng":116.362284,"lat":39.943467,"of":"inner"},{"lng":116.362284,"lat":39.943467,"of":"inner"},{"lng":116.362235,"lat":39.944376,"of":"inner"},{"lng":116.362225,"lat":39.945356,"of":"inner"},{"lng":116.362206,"lat":39.946226,"of":"inner"},{"lng":116.362206,"lat":39.946226,"of":"inner"},{"lng":116.362117,"lat":39.947765,"of":"inner"},{"lng":116.362117,"lat":39.947765,"of":"inner"},{"lng":116.362137,"lat":39.947945,"of":"inner"},{"lng":116.362197,"lat":39.948196,"of":"inner"},{"lng":116.362326,"lat":39.948378,"of":"inner"},{"lng":116.362884,"lat":39.949176,"of":"inner"},{"lng":116.363123,"lat":39.949409,"of":"inner"},{"lng":116.363263,"lat":39.949501,"of":"inner"},{"lng":116.363412,"lat":39.949593,"of":"inner"},{"lng":116.363711,"lat":39.949738,"of":"inner"},{"lng":116.364059,"lat":39.949863,"of":"inner"},{"lng":116.364487,"lat":39.949989,"of":"inner"},{"lng":116.364955,"lat":39.950116,"of":"inner"},{"lng":116.365571,"lat":39.950316,"of":"inner"},{"lng":116.366089,"lat":39.950494,"of":"inner"},{"lng":116.366228,"lat":39.950536,"of":"inner"},{"lng":116.366258,"lat":39.950546,"of":"inner"},{"lng":116.366745,"lat":39.950694,"of":"inner"},{"lng":116.366964,"lat":39.950768,"of":"inner"},{"lng":116.367183,"lat":39.950831,"of":"inner"},{"lng":116.368287,"lat":39.951169,"of":"inner"},{"lng":116.368287,"lat":39.951169,"of":"inner"},{"lng":116.368734,"lat":39.951307,"of":"inner"},{"lng":116.371399,"lat":39.952093,"of":"inner"},{"lng":116.371926,"lat":39.952273,"of":"inner"},{"lng":116.372334,"lat":39.95245,"of":"inner"},{"lng":116.373417,"lat":39.95293,"of":"inner"},{"lng":116.374451,"lat":39.953399,"of":"inner"},{"lng":116.374749,"lat":39.953534,"of":"inner"},{"lng":116.375087,"lat":39.95368,"of":"inner"},{"lng":116.375684,"lat":39.953941,"of":"inner"},{"lng":116.375684,"lat":39.953941,"of":"inner"},{"lng":116.375793,"lat":39.953953,"of":"inner"},{"lng":116.376141,"lat":39.95402,"of":"inner"},{"lng":116.376747,"lat":39.954191,"of":"inner"},{"lng":116.377234,"lat":39.95432,"of":"inner"},{"lng":116.377711,"lat":39.954419,"of":"inner"},{"lng":116.3779,"lat":39.954442,"of":"inner"},{"lng":116.378099,"lat":39.954476,"of":"inner"},{"lng":116.378208,"lat":39.954488,"of":"inner"},{"lng":116.381458,"lat":39.954727,"of":"inner"},{"lng":116.38291,"lat":39.954802,"of":"inner"},{"lng":116.383069,"lat":39.954825,"of":"inner"},{"lng":116.383437,"lat":39.954901,"of":"inner"},{"lng":116.383536,"lat":39.954943,"of":"inner"},{"lng":116.383685,"lat":39.955006,"of":"inner"},{"lng":116.383765,"lat":39.955047,"of":"inner"},{"lng":116.383994,"lat":39.955191,"of":"inner"},{"lng":116.384123,"lat":39.955313,"of":"inner"},{"lng":116.384322,"lat":39.955517,"of":"inner"},{"lng":116.384372,"lat":39.955587,"of":"inner"},{"lng":116.384471,"lat":39.955739,"of":"inner"},{"lng":116.3848,"lat":39.956205,"of":"inner"},{"lng":116.385238,"lat":39.956822,"of":"inner"},{"lng":116.385347,"lat":39.957004,"of":"inner"},{"lng":116.385596,"lat":39.957388,"of":"inner"},{"lng":116.385636,"lat":39.957479,"of":"inner"},{"lng":116.385686,"lat":39.95757,"of":"inner"},{"lng":116.385786,"lat":39.957851,"of":"inner"},{"lng":116.385806,"lat":39.957912,"of":"inner"},{"lng":116.385865,"lat":39.958163,"of":"inner"},{"lng":116.385876,"lat":39.958263,"of":"inner"},{"lng":116.385916,"lat":39.958794,"of":"inner"},{"lng":116.385916,"lat":39.958954,"of":"inner"},{"lng":116.385897,"lat":39.959614,"of":"inner"},{"lng":116.385897,"lat":39.959884,"of":"inner"},{"lng":116.385887,"lat":39.960354,"of":"inner"},{"lng":116.385887,"lat":39.960354,"of":"inner"},{"lng":116.385868,"lat":39.961324,"of":"inner"},{"lng":116.385859,"lat":39.961704,"of":"inner"},{"lng":116.385859,"lat":39.961834,"of":"inner"},{"lng":116.385859,"lat":39.962154,"of":"inner"},{"lng":116.385859,"lat":39.962314,"of":"inner"},{"lng":116.385859,"lat":39.962384,"of":"inner"},{"lng":116.38585,"lat":39.962544,"of":"inner"},{"lng":116.385831,"lat":39.963694,"of":"inner"},{"lng":116.385821,"lat":39.964154,"of":"inner"},{"lng":116.385852,"lat":39.964745,"of":"inner"},{"lng":116.386003,"lat":39.966548,"of":"inner"},{"lng":116.386013,"lat":39.966628,"of":"inner"},{"lng":116.386093,"lat":39.967269,"of":"inner"},{"lng":116.386153,"lat":39.967811,"of":"inner"},{"lng":116.386243,"lat":39.968582,"of":"inner"},{"lng":116.386624,"lat":39.971719,"of":"inner"},{"lng":116.386624,"lat":39.971719,"of":"inner"},{"lng":116.386644,"lat":39.97186,"of":"inner"},{"lng":116.386705,"lat":39.972421,"of":"inner"},{"lng":116.386725,"lat":39.972621,"of":"inner"},{"lng":116.386735,"lat":39.972711,"of":"inner"},{"lng":116.386765,"lat":39.972972,"of":"inner"},{"lng":116.386785,"lat":39.973072,"of":"inner"},{"lng":116.386795,"lat":39.973222,"of":"inner"},{"lng":116.386815,"lat":39.973323,"of":"inner"},{"lng":116.386825,"lat":39.973393,"of":"inner"},{"lng":116.386825,"lat":39.973433,"of":"inner"},{"lng":116.386845,"lat":39.973593,"of":"inner"},{"lng":116.386855,"lat":39.973724,"of":"inner"},{"lng":116.386865,"lat":39.973784,"of":"inner"},{"lng":116.386875,"lat":39.973884,"of":"inner"},{"lng":116.386925,"lat":39.974205,"of":"inner"},{"lng":116.386925,"lat":39.974295,"of":"inner"},{"lng":116.386935,"lat":39.974365,"of":"inner"},{"lng":116.386955,"lat":39.974515,"of":"inner"},{"lng":116.387015,"lat":39.974996,"of":"inner"},{"lng":116.387116,"lat":39.975908,"of":"inner"},{"lng":116.387116,"lat":39.975908,"of":"inner"},{"lng":116.387356,"lat":39.978043,"of":"inner"},{"lng":116.387416,"lat":39.978554,"of":"inner"},{"lng":116.387466,"lat":39.978935,"of":"inner"},{"lng":116.387606,"lat":39.979957,"of":"inner"},{"lng":116.387636,"lat":39.980217,"of":"inner"},{"lng":116.387686,"lat":39.980648,"of":"inner"},{"lng":116.387706,"lat":39.980749,"of":"inner"},{"lng":116.387786,"lat":39.98139,"of":"inner"},{"lng":116.387806,"lat":39.98157,"of":"inner"},{"lng":116.387846,"lat":39.981991,"of":"inner"},{"lng":116.387867,"lat":39.982231,"of":"inner"},{"lng":116.387887,"lat":39.982482,"of":"inner"},{"lng":116.387887,"lat":39.983052,"of":"inner"},{"lng":116.387887,"lat":39.983062,"of":"inner"},{"lng":116.387847,"lat":39.983521,"of":"inner"},{"lng":116.387818,"lat":39.983761,"of":"inner"},{"lng":116.387788,"lat":39.983921,"of":"inner"},{"lng":116.387758,"lat":39.98406,"of":"inner"},{"lng":116.387709,"lat":39.984299,"of":"inner"},{"lng":116.387669,"lat":39.984489,"of":"inner"},{"lng":116.387639,"lat":39.984598,"of":"inner"},{"lng":116.3875,"lat":39.985126,"of":"inner"},{"lng":116.387451,"lat":39.985286,"of":"inner"},{"lng":116.386894,"lat":39.987277,"of":"inner"},{"lng":116.386894,"lat":39.987277,"of":"inner"},{"lng":116.386815,"lat":39.987556,"of":"inner"},{"lng":116.386646,"lat":39.988174,"of":"inner"},{"lng":116.386428,"lat":39.98893,"of":"inner"},{"lng":116.38613,"lat":39.989966,"of":"inner"},{"lng":116.38613,"lat":39.989966,"of":"inner"},{"lng":116.385534,"lat":39.991956,"of":"inner"},{"lng":116.385534,"lat":39.991956,"of":"inner"},{"lng":116.385106,"lat":39.993429,"of":"inner"},{"lng":116.384907,"lat":39.994096,"of":"inner"},{"lng":116.38449,"lat":39.995549,"of":"inner"},{"lng":116.38442,"lat":39.995788,"of":"inner"},{"lng":116.384072,"lat":39.996972,"of":"inner"},{"lng":116.383844,"lat":39.997718,"of":"inner"},{"lng":116.383595,"lat":39.998324,"of":"inner"},{"lng":116.383416,"lat":39.998671,"of":"inner"},{"lng":116.383416,"lat":39.998671,"of":"inner"},{"lng":116.382849,"lat":39.999531,"of":"inner"},{"lng":116.381487,"lat":40.001287,"of":"inner"},{"lng":116.380403,"lat":40.002677,"of":"inner"},{"lng":116.379429,"lat":40.003949,"of":"inner"},{"lng":116.379021,"lat":40.004462,"of":"inner"},{"lng":116.379021,"lat":40.004462,"of":"inner"},{"lng":116.378793,"lat":40.004748,"of":"inner"},{"lng":116.378633,"lat":40.004955,"of":"inner"},{"lng":116.377798,"lat":40.006029,"of":"inner"},{"lng":116.377152,"lat":40.006857,"of":"inner"},{"lng":116.376923,"lat":40.007163,"of":"inner"},{"lng":116.376287,"lat":40.008011,"of":"inner"},{"lng":116.374417,"lat":40.010516,"of":"inner"},{"lng":116.37378,"lat":40.011364,"of":"inner"},{"lng":116.37378,"lat":40.011364,"of":"inner"},{"lng":116.372577,"lat":40.012982,"of":"inner"},{"lng":116.372417,"lat":40.013209,"of":"inner"},{"lng":116.37199,"lat":40.013772,"of":"inner"},{"lng":116.371323,"lat":40.014669,"of":"inner"},{"lng":116.370557,"lat":40.015706,"of":"inner"},{"lng":116.36981,"lat":40.016682,"of":"inner"},{"lng":116.369631,"lat":40.016929,"of":"inner"},{"lng":116.369302,"lat":40.017463,"of":"inner"},{"lng":116.368864,"lat":40.018266,"of":"inner"},{"lng":116.368864,"lat":40.018266,"of":"inner"},{"lng":116.368814,"lat":40.018495,"of":"inner"},{"lng":116.368585,"lat":40.018831,"of":"inner"},{"lng":116.367998,"lat":40.019441,"of":"inner"},{"lng":116.367421,"lat":40.020141,"of":"inner"},{"lng":116.367421,"lat":40.020141,"of":"inner"},{"lng":116.366973,"lat":40.020684,"of":"inner"},{"lng":116.366933,"lat":40.020733,"of":"inner"},{"lng":116.366515,"lat":40.021276,"of":"inner"},{"lng":116.366126,"lat":40.02178,"of":"inner"},{"lng":116.365778,"lat":40.022214,"of":"inner"},{"lng":116.365001,"lat":40.023212,"of":"inner"},{"lng":116.364931,"lat":40.023301,"of":"inner"},{"lng":116.364772,"lat":40.023509,"of":"inner"},{"lng":116.364234,"lat":40.02419,"of":"inner"},{"lng":116.363646,"lat":40.024962,"of":"inner"},{"lng":116.363576,"lat":40.025041,"of":"inner"},{"lng":116.363168,"lat":40.025565,"of":"inner"},{"lng":116.363168,"lat":40.025565,"of":"inner"},{"lng":116.362839,"lat":40.02587,"of":"inner"},{"lng":116.362261,"lat":40.026632,"of":"inner"},{"lng":116.362261,"lat":40.026632,"of":"inner"},{"lng":116.361942,"lat":40.027047,"of":"inner"},{"lng":116.361902,"lat":40.027097,"of":"inner"},{"lng":116.361434,"lat":40.027721,"of":"inner"},{"lng":116.361404,"lat":40.02776,"of":"inner"},{"lng":116.361364,"lat":40.0278,"of":"inner"},{"lng":116.361144,"lat":40.028087,"of":"inner"},{"lng":116.360925,"lat":40.028474,"of":"inner"},{"lng":116.360746,"lat":40.028802,"of":"inner"},{"lng":116.360706,"lat":40.028881,"of":"inner"},{"lng":116.360576,"lat":40.029129,"of":"inner"},{"lng":116.360516,"lat":40.029389,"of":"inner"},{"lng":116.360526,"lat":40.029489,"of":"inner"},{"lng":116.360595,"lat":40.029629,"of":"inner"},{"lng":116.360695,"lat":40.029731,"of":"inner"},{"lng":116.360774,"lat":40.029782,"of":"inner"},{"lng":116.360814,"lat":40.029802,"of":"inner"},{"lng":116.361013,"lat":40.029845,"of":"inner"},{"lng":116.361232,"lat":40.029827,"of":"inner"},{"lng":116.361392,"lat":40.029759,"of":"inner"},{"lng":116.361442,"lat":40.02972,"of":"inner"},{"lng":116.361571,"lat":40.029572,"of":"inner"},{"lng":116.361601,"lat":40.029442,"of":"inner"},{"lng":116.361601,"lat":40.029402,"of":"inner"},{"lng":116.361561,"lat":40.029272,"of":"inner"},{"lng":116.361353,"lat":40.029059,"of":"inner"},{"lng":116.361104,"lat":40.028976,"of":"inner"},{"lng":116.360576,"lat":40.028879,"of":"inner"},{"lng":116.360576,"lat":40.028879,"of":"inner"},{"lng":116.360208,"lat":40.028875,"of":"inner"},{"lng":116.359222,"lat":40.028883,"of":"inner"},{"lng":116.357488,"lat":40.028875,"of":"inner"},{"lng":116.356531,"lat":40.028886,"of":"inner"},{"lng":116.356023,"lat":40.028881,"of":"inner"},{"lng":116.355634,"lat":40.028878,"of":"inner"},{"lng":116.354616,"lat":40.02888,"of":"inner"},{"lng":116.351862,"lat":40.028893,"of":"inner"},{"lng":116.348726,"lat":40.028922,"of":"inner"},{"lng":116.347347,"lat":40.02893,"of":"inner"},{"lng":116.344506,"lat":40.028952,"of":"inner"},{"lng":116.342995,"lat":40.028866,"of":"inner"},{"lng":116.341943,"lat":40.02872,"of":"inner"},{"lng":116.340922,"lat":40.028505,"of":"inner"},{"lng":116.340151,"lat":40.0283,"of":"inner"},{"lng":116.337144,"lat":40.027372,"of":"inner"},{"lng":116.337144,"lat":40.027372,"of":"inner"},{"lng":116.336983,"lat":40.027354,"of":"inner"},{"lng":116.336632,"lat":40.027327,"of":"inner"},{"lng":116.336201,"lat":40.027301,"of":"inner"},{"lng":116.33597,"lat":40.027303,"of":"inner"},{"lng":116.335589,"lat":40.027327,"of":"inner"},{"lng":116.335358,"lat":40.027369,"of":"inner"},{"lng":116.335177,"lat":40.027411,"of":"inner"},{"lng":116.334535,"lat":40.027628,"of":"inner"},{"lng":116.333942,"lat":40.027904,"of":"inner"},{"lng":116.33341,"lat":40.02822,"of":"inner"},{"lng":116.332727,"lat":40.028738,"of":"inner"},{"lng":116.332124,"lat":40.029365,"of":"inner"},{"lng":116.331812,"lat":40.029619,"of":"inner"},{"lng":116.331812,"lat":40.029619,"of":"inner"},{"lng":116.330997,"lat":40.030979,"of":"inner"},{"lng":116.330735,"lat":40.031462,"of":"inner"},{"lng":116.330645,"lat":40.031644,"of":"inner"},{"lng":116.330383,"lat":40.032217,"of":"inner"},{"lng":116.330152,"lat":40.03278,"of":"inner"},{"lng":116.32999,"lat":40.033202,"of":"inner"},{"lng":116.32999,"lat":40.033202,"of":"inner"},{"lng":116.329829,"lat":40.033674,"of":"inner"},{"lng":116.329738,"lat":40.033985,"of":"inner"},{"lng":116.329577,"lat":40.034547,"of":"inner"},{"lng":116.329406,"lat":40.03516,"of":"inner"},{"lng":116.329194,"lat":40.035912,"of":"inner"},{"lng":116.329124,"lat":40.036183,"of":"inner"},{"lng":116.328892,"lat":40.036877,"of":"inner"},{"lng":116.328509,"lat":40.037802,"of":"inner"},{"lng":116.328439,"lat":40.037963,"of":"inner"},{"lng":116.328318,"lat":40.038185,"of":"inner"},{"lng":116.328318,"lat":40.038185,"of":"inner"},{"lng":116.328016,"lat":40.038699,"of":"inner"},{"lng":116.327825,"lat":40.038972,"of":"inner"},{"lng":116.327634,"lat":40.039245,"of":"inner"},{"lng":116.327271,"lat":40.03969,"of":"inner"},{"lng":116.326668,"lat":40.040309,"of":"inner"},{"lng":116.326235,"lat":40.040726,"of":"inner"},{"lng":116.324394,"lat":40.042336,"of":"inner"},{"lng":116.323166,"lat":40.043406,"of":"inner"},{"lng":116.322733,"lat":40.043793,"of":"inner"},{"lng":116.322643,"lat":40.043875,"of":"inner"},{"lng":116.32227,"lat":40.044231,"of":"inner"},{"lng":116.32222,"lat":40.044292,"of":"inner"},{"lng":116.321696,"lat":40.044861,"of":"inner"},{"lng":116.321233,"lat":40.045459,"of":"inner"},{"lng":116.321173,"lat":40.04556,"of":"inner"},{"lng":116.320861,"lat":40.046036,"of":"inner"},{"lng":116.320579,"lat":40.046491,"of":"inner"},{"lng":116.320418,"lat":40.046773,"of":"inner"},{"lng":116.320267,"lat":40.047056,"of":"inner"},{"lng":116.320085,"lat":40.047369,"of":"inner"},{"lng":116.320005,"lat":40.047511,"of":"inner"},{"lng":116.319874,"lat":40.047753,"of":"inner"},{"lng":116.319431,"lat":40.048521,"of":"inner"},{"lng":116.319068,"lat":40.049117,"of":"inner"},{"lng":116.318907,"lat":40.04936,"of":"inner"},{"lng":116.318364,"lat":40.05016,"of":"inner"},{"lng":116.317719,"lat":40.051041,"of":"inner"},{"lng":116.317115,"lat":40.051792,"of":"inner"},{"lng":116.316763,"lat":40.052259,"of":"inner"},{"lng":116.316069,"lat":40.053131,"of":"inner"},{"lng":116.314549,"lat":40.055069,"of":"inner"},{"lng":116.313462,"lat":40.056568,"of":"inner"},{"lng":116.313291,"lat":40.056821,"of":"inner"},{"lng":116.31304,"lat":40.057176,"of":"inner"},{"lng":116.312677,"lat":40.057732,"of":"inner"},{"lng":116.312617,"lat":40.057833,"of":"inner"},{"lng":116.312456,"lat":40.058086,"of":"inner"},{"lng":116.312275,"lat":40.058349,"of":"inner"},{"lng":116.312185,"lat":40.058491,"of":"inner"},{"lng":116.311752,"lat":40.059199,"of":"inner"},{"lng":116.311732,"lat":40.059229,"of":"inner"},{"lng":116.311571,"lat":40.059512,"of":"inner"},{"lng":116.31133,"lat":40.059906,"of":"inner"},{"lng":116.311149,"lat":40.060239,"of":"inner"},{"lng":116.311149,"lat":40.060239,"of":"inner"},{"lng":116.311139,"lat":40.060289,"of":"inner"},{"lng":116.311129,"lat":40.06036,"of":"inner"},{"lng":116.311108,"lat":40.06043,"of":"inner"},{"lng":116.311088,"lat":40.06051,"of":"inner"},{"lng":116.311038,"lat":40.060661,"of":"inner"},{"lng":116.310947,"lat":40.060843,"of":"inner"},{"lng":116.310877,"lat":40.061004,"of":"inner"},{"lng":116.310545,"lat":40.06164,"of":"inner"},{"lng":116.310405,"lat":40.061892,"of":"inner"},{"lng":116.310123,"lat":40.062437,"of":"inner"},{"lng":116.310023,"lat":40.062629,"of":"inner"},{"lng":116.3096,"lat":40.063456,"of":"inner"},{"lng":116.309329,"lat":40.063991,"of":"inner"},{"lng":116.309027,"lat":40.064376,"of":"inner"},{"lng":116.308615,"lat":40.064593,"of":"inner"},{"lng":116.308263,"lat":40.064679,"of":"inner"},{"lng":116.30777,"lat":40.064677,"of":"inner"},{"lng":116.306875,"lat":40.064521,"of":"inner"},{"lng":116.305176,"lat":40.064228,"of":"inner"},{"lng":116.303487,"lat":40.063882,"of":"inner"},{"lng":116.302864,"lat":40.063771,"of":"inner"},{"lng":116.302804,"lat":40.063732,"of":"inner"},{"lng":116.302804,"lat":40.063732,"of":"inner"},{"lng":116.303376,"lat":40.062104,"of":"inner"},{"lng":116.303908,"lat":40.060446,"of":"inner"},{"lng":116.303928,"lat":40.060356,"of":"inner"},{"lng":116.303989,"lat":40.060125,"of":"inner"},{"lng":116.304139,"lat":40.059583,"of":"inner"},{"lng":116.30426,"lat":40.059161,"of":"inner"},{"lng":116.30433,"lat":40.05892,"of":"inner"},{"lng":116.304441,"lat":40.058548,"of":"inner"},{"lng":116.304451,"lat":40.058498,"of":"inner"},{"lng":116.304602,"lat":40.057986,"of":"inner"},{"lng":116.304702,"lat":40.057634,"of":"inner"},{"lng":116.305094,"lat":40.056338,"of":"inner"},{"lng":116.305124,"lat":40.056248,"of":"inner"},{"lng":116.305144,"lat":40.056188,"of":"inner"},{"lng":116.305476,"lat":40.055263,"of":"inner"},{"lng":116.305496,"lat":40.055212,"of":"inner"},{"lng":116.305647,"lat":40.05524,"of":"inner"},{"lng":116.305647,"lat":40.05524,"of":"inner"},{"lng":116.305627,"lat":40.0553,"of":"inner"},{"lng":116.305245,"lat":40.056356,"of":"inner"},{"lng":116.304853,"lat":40.057642,"of":"inner"},{"lng":116.304752,"lat":40.057994,"of":"inner"},{"lng":116.304752,"lat":40.057994,"of":"inner"},{"lng":116.306451,"lat":40.058308,"of":"inner"},{"lng":116.306451,"lat":40.058308,"of":"inner"},{"lng":116.306692,"lat":40.057714,"of":"inner"},{"lng":116.306843,"lat":40.057331,"of":"inner"},{"lng":116.306914,"lat":40.05715,"of":"inner"},{"lng":116.306914,"lat":40.05715,"of":"inner"},{"lng":116.307034,"lat":40.057188,"of":"inner"},{"lng":116.307064,"lat":40.057188,"of":"inner"}],
          icon: {
            url: 'http://api.map.baidu.com/library/LuShu/1.2/examples/car.png',
            size: {width: 52, height: 26},
            opts: {anchor: {width: 27, height:13}}
          }
        };
      },
      created(){
        let data = getCityData();
        this.options = data;
      },
      methods: {
        handleChange(value) {
          console.log(value);
        },
        reset () {
          this.play = false
        },
        handleSearchComplete (res) {
          this.path = res.getPlan(0).getRoute(0).getPath()
          // console.log(JSON.stringify(this.path))
        }
      }
    }
</script>

<style scoped>
.map{
  height: 300px;
}
</style>
